printing: Show correct status of a job
authorMarek Kasik <mkasik@redhat.com>
Wed, 5 Jun 2013 16:00:54 +0000 (18:00 +0200)
committerMarek Kasik <mkasik@redhat.com>
Thu, 6 Jun 2013 09:09:36 +0000 (11:09 +0200)
"job-state" is IPP_TAG_ENUM not IPP_TAG_INTEGER.

modules/printbackends/cups/gtkprintbackendcups.c

index 5656615606fd687485e79def3e45ed90f118e71b..ff8bb7f9b8fcb8119d4055c4ba625be814578925 100644 (file)
@@ -1655,7 +1655,7 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
   state = 0;
 
 #ifdef HAVE_CUPS_API_1_6
-  attr = ippFindAttribute (response, "job-state", IPP_TAG_INTEGER);
+  attr = ippFindAttribute (response, "job-state", IPP_TAG_ENUM);
   state = ippGetInteger (attr, 0);
 #else
   for (attr = response->attrs; attr != NULL; attr = attr->next)